package XSSDemo.service.impl;

import XSSDemo.dao.MessageInfoDao;
import XSSDemo.dao.impl.MessageInfoDaoImpl;
import XSSDemo.pojo.MessageInfo;
import XSSDemo.service.MessageInfoService;

import java.util.List;


public class MessageInfoServiceImpl implements MessageInfoService {

    MessageInfoDao msginfo = new MessageInfoDaoImpl();

    public List<MessageInfo> MessageInfoShowService(){

        List<MessageInfo> msg = msginfo.MessageInfoShowDao();
        return msg;
    }

    public boolean MessageInfoStoreService(String name, String mail, String message){

        return 	msginfo.MessageInfoStoreDao(name, mail, message);

    }

}
